package com.mobilous.client.project.pagemanager;
import com.google.gwt.touch.client.Point;
public class LineTr {
	public double x;
	public double y;
	public double x1;
	public double y1;
	
	LineTr(Point point1, Point point2)
	{
		this.x=point1.getX();
		this.y=point1.getY();
		this.x1=point2.getX();
		this.y1=point2.getY();
	}
	
	public double length()
	{
		return Math.sqrt(Math.pow((x-x1), 2) + Math.pow((y-y1), 2)); 		
	}
}
